﻿using DataModels.Enums.Livelihood;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.Livelihood
{
    ///<summary>
    ///房屋租售表
    ///</summary>
    [SugarTable("houserentsale")]
    public partial class HouseRentSale
    {
        public HouseRentSale()
        {
        }
        /// <summary>
        /// Desc:主键
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true)]
        public string UUID { get; set; }

        /// <summary>
        /// Desc:小区UUID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string ProjectUUID { get; set; }

        /// <summary>
        /// Desc:类型 在租/在售
        /// Default:
        /// Nullable:True
        /// </summary>           
        public HouseRentSaleType? Type { get; set; }

        /// <summary>
        /// Desc:租售标题
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Title { get; set; }

        /// <summary>
        /// Desc:户型
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string HouseType { get; set; }

        /// <summary>
        /// Desc:户型朝向
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string HouseOrientation { get; set; }

        /// <summary>
        /// Desc:户型面积
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? HouseArea { get; set; }

        /// <summary>
        /// Desc:居住人数
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? PersonNumber { get; set; }

        /// <summary>
        /// Desc:租售金额
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? RentSaleAmount { get; set; }

        /// <summary>
        /// Desc:委托用户UUID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string DelegatedUserUUID { get; set; }

        /// <summary>
        /// Desc:委托电话
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string DelegatedPhone { get; set; }

        /// <summary>
        /// Desc:委托用户名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string DelegatedUserName { get; set; }

        /// <summary>
        /// Desc:状态 0草搞 1发布正式
        /// Default:
        /// Nullable:True
        /// </summary>           
        public Status? Status { get; set; }

        /// <summary>
        /// Desc:主图 可以为多个 逗号分隔
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string MainImage { get; set; }

        /// <summary>
        /// Desc:案例
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string Example { get; set; }

        /// <summary>
        /// 创建人UUID
        /// </summary>
        public string CreateUser { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

    }
}
